home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
AIncludes
/
TextInputSystem.a
< prev
next >
Wrap
Text File
|
1996-05-01
|
5KB
|
147 lines
;
; File: TextInputSystem.a
;
; Contains: The handling of text input user interface.
;
; Version: Technology: System 8
; Release: Universal Interfaces 3.0d3 on Copland DR1
;
; Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
;
; Bugs?: If you find a problem with this file, send the file and version
; information (from above) and the problem description to:
;
; Internet: apple.bugs@applelink.apple.com
; AppleLink: APPLE.BUGS
;
;
IF &TYPE('__TEXTINPUTSYSTEM__') = 'UNDEFINED' THEN
__TEXTINPUTSYSTEM__ SET 1
IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
include 'Types.a'
ENDIF
IF &TYPE('__TEXTCOMMON__') = 'UNDEFINED' THEN
include 'TextCommon.a'
ENDIF
IF &TYPE('__LOCALEOBJECTS__') = 'UNDEFINED' THEN
include 'LocaleObjects.a'
ENDIF
IF FOR_SYSTEM8_COOPERATIVE THEN
; ____________________________________________________________________________________
;
;
;Routine: GetCurrentTextInputLocaleIdentifier
; gets the LocaleIdentifier of the currently selected text input object.
;Input: NONE.
;Output: langRegionCode: the currently selected object.
;OSStatus: (no error, ?)
;NOTE: System8 only.
;
;
;
; extern OSStatus GetCurrentTextInputLocaleIdentifier(LocaleIdentifier *langRegionCode)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetCurrentTextInputLocaleIdentifier
ENDIF
; ____________________________________________________________________________________
;
;
;Routine: GetCurrentTextInputRef
; gets the current text input object reference.
;Input: NONE.
;Output: textInputObject: the currently selected object.
;OSStatus: (no error, ?)
;NOTE: System8 only.
;
;
; extern OSStatus GetCurrentTextInputRef(LocaleObjectRef *textInputObject)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetCurrentTextInputRef
ENDIF
; ____________________________________________________________________________________
;
;
;Routine: SetCurrentTextInputLocaleIdentifier
; sets the current text input object according to the passed-in LocaleIdentifier.
;Input: textInputObject: the object selected by the client.
;Output: NONE.
;OSStatus: (no error, invalide object)
;NOTE: if the object is not shown, it will be displayed in the menu if the system supports
; this language/region/... locale.
;
;
;
; extern OSStatus SetCurrentTextInputLocaleIdentifier(LocaleIdentifier langRegionCode)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION SetCurrentTextInputLocaleIdentifier
ENDIF
; ____________________________________________________________________________________
;
;
;Routine: SetCurrentTextInputRef
; sets the current text input object ref.
;Input: textInputObject: the object selected by the client.
;Output: NONE.
;OSStatus: (no error, invalide object)
;NOTE: if the object is not shown, it will be displayed in the menu if the system supports
; this language/region/... locale.
;
;
; extern OSStatus SetCurrentTextInputRef(LocaleObjectRef textInputObject)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION SetCurrentTextInputRef
ENDIF
;
;____________________________________________________________________________________
; routines for converting between a text input object ref and the new LocaleIdentifier
;____________________________________________________________________________________
;
;
;
;Routine: GetLocaleIdentifierFromTextInputObjectRef
; returns the LocaleIdentifier textInputObject represents.
;Input: textInputObject: the reference of text input object.
;Output: langRegionCode: localeIdentifier that this objects is stamped with.
;OSStatus: (no error, ?)
;NOTE: System8 only.
;
;
;
; extern OSStatus GetLocaleIdentifierFromTextInputObjectRef(LocaleObjectRef textInputObject, LocaleIdentifier *langRegionCode)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetLocaleIdentifierFromTextInputObjectRef
ENDIF
; ____________________________________________________________________________________
;
;
;Routine: GetTextInputObjectRefFromLocaleIdentifier
; gets the object ref last designated by the user as representing the lanaguag/region
; LocaleIdentifier (or simply returns the default one), otherwise it returns null.
;Input: langRegioncode: value of LocaleIdentifier.
;Output: textInputObject: best match returned object.
;OSStatus: (no error, ?)
;NOTE: System8 only.
;
;
;
; extern OSStatus GetTextInputObjectRefFromLocaleIdentifier(LocaleIdentifier langRegionCode, LocaleObjectRef *textInputObject)
;
IF GENERATINGCFM THEN
IMPORT_CFM_FUNCTION GetTextInputObjectRefFromLocaleIdentifier
ENDIF
ENDIF
ENDIF ; __TEXTINPUTSYSTEM__